Skip to main content
Participating Frequently
May 19, 2009
Question

Flash and stop looping Action Script

  • May 19, 2009
  • 1 reply
  • 12161 views

I am trying to build a flash webpage in Adobe and I have a small amount of the background done but it loops every time. 

Searching the web it says to put in an action script of stop(); it will not let me do this on the current layer  so I created a new layer “layer 7” and added the required action script. When I uploaded it to my webpage it plays but the second it is finished it loops.

I tested it with the player built into the flash pro cs4 and it stops and does not loop. I also checked the index.html code and it has Loop set to false.

Is there something else that I should do?

Thanks,

Brad

This topic has been closed for replies.

1 reply

Ned Murphy
Legend
May 19, 2009

Having the stop(); in the last frame of the animated timeline is all you need.  Do you have any other actionscript in the movie?

iuenuAuthor
Participating Frequently
May 19, 2009

Nope I have just created a few shapes and used Alpha and Tween to have them move in.

Ned Murphy
Legend
May 19, 2009

Is there any chance you could take a screenshot showing your timeline with stop() frame and the AS code window and attach it to a posting response?  Don't upload the image, use the editor feature to plant it in the posting itself.

I'd offer to look at the fla file for you, but I would need to have the file saved as a CS3 file, and you'd need somewhere you can upload it to, like your own server (the upload feature of these forums is suffering badly).